﻿@model ScrumTracker.Models.Product
@{
    ViewBag.Title = "Get";
}
<h1>@Model.Name</h1>
<div class="displaytable">
    <section class="">
      <h3>Releases</h3>
      <div>
        @foreach (var release in Model.Releases)
        { 
            <div>@release.Name</div>
        }
      </div>
    </section>
    <section class="">
      <h3>Backlog</h3>
      <div>
        @foreach (var story in Model.Stories)
        { 
            <div style="border: 1px dotted Gray; margin-bottom: 10px; padding: 5px;">
                <p style="margin-right: 128px; float: left;">@story.Description</p>
                <p style="float: right; width: 128px; text-align: right;">
                    <a href="@Url.Action("Get", "Stories", new { id = story.IssueId })">Details</a>
                </p>
                <div style="clear: both;"></div>
            </div>
        }
      </div>
      
    </section>
    <div style="clear: both;">
        <a href="@Url.Action("New", "Stories", new { ProductId = Model.ProductId })">Add</a>
    </div>
</div>
